<?php
class Core_Business_Userrule extends Core_Business_Abstract{
	private $_userid;
	private $_ruleid;
	
	public function getUserid() {return $this->_userid;}
	public function setUserid($value) {	$this->_userid = $value;}
	
	public function getRuleid() {return $this->_ruleid;}
	public function setRuleid($value) {	$this->_ruleid = $value;}
	
	public function getRole() {
		$role = Core_Business_Rule::getRuleById($this->_ruleid);
		return $role;
	}
	
	public function save() {
		$map = new Core_Data_Mappers_Userrule();
		$map->save($this);
	}
	
}
?>